package test;

import java.util.List;

import service.ValidateInput;
import dao.PartOfListDAO;
import daoimpl.PartOfListDAOImpl;
import dto.PartOfListDTO;
import exceptions.DALException;

public class test2 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
			try {
				PartOfListDAO dao = new PartOfListDAOImpl();
				List<PartOfListDTO> list = dao.getPartOfList(7);
				
				for (PartOfListDTO participantList : list) {
					System.out.println("Name: " + participantList.getName());
					System.out.println("Tournament ID: " + participantList.getTournamentId());
				}
				
			} catch (DALException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		
	}

}
